package org.saber.geo.model;

/**
 * 线
 * @author saber
 *
 */
public class Line {
	
	private Point basePoint;
	
	Point pointB;
	
	double k;
	
	double length;

	
	public Point getBasePoint() {
		return basePoint;
	}

	public void setBasePoint(Point basePoint) {
		this.basePoint = basePoint;
	}

	public Point getPointB() {
		return pointB;
	}

	public void setPointB(Point pointB) {
		this.pointB = pointB;
	}

	public double getK() {
		if(this.k==Double.NaN||Double.isFinite(this.k))
			return 0.0;
		return k;
	}

	public void setK(double k) {
		this.k = k;
	}

	public double getLength() {
		return length;
	}

	public void setLength(double length) {
		this.length = length;
	}
	
	
	
	
}
